package backend.instructions;

import backend.Register;
import backend.RegistersMap;


public abstract class Instruction {

	String opcode; // eg. ADD, BEQ, LW, SLTIU...
	Register rs;
	int index;
	RegistersMap RegMap;
	
	public Instruction(String name, String rs, int index, RegistersMap RegMap) {
		this.opcode = name;
		this.RegMap = RegMap;
		this.index = index;
		
	}

	public abstract void execute();
}
